package com.kenny.api.service;

import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @author Kenny Kam
 * @date 2021/1/8 17:22
 */
@Component
public class DemoServiceFallback implements FallbackFactory<DemoService> {

    @Override
    public DemoService create(Throwable throwable) {
        return () -> "调用失败啦";
    }
}
